package com.ruoyi.swimming.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商城类目对象 mall_category
 * 
 * @author ruoyi
 * @date 2021-07-17
 */
public class MallCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 类目名称 */
    @Excel(name = "类目名称")
    private String kindName;

    /** 主图url */
    @Excel(name = "主图url")
    private String mainPicUrl;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @TableLogic
    private Integer isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setKindName(String kindName) 
    {
        this.kindName = kindName;
    }

    public String getKindName() 
    {
        return kindName;
    }
    public void setMainPicUrl(String mainPicUrl) 
    {
        this.mainPicUrl = mainPicUrl;
    }

    public String getMainPicUrl() 
    {
        return mainPicUrl;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("kindName", getKindName())
            .append("mainPicUrl", getMainPicUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
